from settings.conf_base import *

APPEND_SLASH = False
# Application definition
INSTALLED_APPS.extend([
    # 我的app
    'apis.system',
    'apis.base_data',
    'django_apscheduler'
])

MIDDLEWARE = [
    "django.middleware.security.SecurityMiddleware",
    # "whitenoise.middleware.WhiteNoiseMiddleware",
    "django.contrib.sessions.middleware.SessionMiddleware",
    "corsheaders.middleware.CorsMiddleware",  # 跨域中间件
    "django.middleware.common.CommonMiddleware",
    "django.middleware.csrf.CsrfViewMiddleware",
    "django.contrib.auth.middleware.AuthenticationMiddleware",
    "django.contrib.messages.middleware.MessageMiddleware",
    "django.middleware.clickjacking.XFrameOptionsMiddleware",
    "utils.middleware.ApiLoggingMiddleware",
]
ALLOWED_HOSTS = ['*']

ROOT_URLCONF = 'apis.urls'
